{layout name="layout/sharewifi" /}
<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <form id="my-form" class="am-form tpl-form-line-form" enctype="multipart/form-data" method="post">
                    <div class="widget-body">
                        <fieldset>
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">公告设置</div>
                            </div>
                            <div class="widget-body am-fr">
                                <div class="am-u-sm-12">
                                    <table width="100%" class="am-table am-table-hover tpl-table-black">
                                        <thead>
                                        <tr>
                                            <th>广告位名称</th>
                                            <th>广告位ID</th>
                                            <th>广告位状态</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                            <input type="hidden" name="data[index][index][title]" value="{$model['index']['index']['title']}" />
                                            <tr>
                                                <td class="am-text-middle">
                                                    <p class="item-title">
                                                        <input type="hidden" name="data[index][index][popup][title]" value="{$model['index']['index']['popup']['title']}" />
                                                        {$model['index']['index']['title']}
                                                        {$model['index']['index']['popup']['title']}广告
                                                    </p>
                                                </td>
                                                <td class="am-text-middle">
                                                    <input type="text" class="tpl-form-input" name="data[index][index][popup][adunit]" value="{$model['index']['index']['popup']['adunit']}">
                                                </td>
                                                <td class="am-text-middle">
                                                    <label class="am-radio-inline">
                                                        <input type="radio" name="data[index][index][popup][is_open]" value="0" data-am-ucheck
                                                            {$model['index']['index']['popup']['is_open'] == 0 ? 'checked' : ''} >关闭
                                                    </label>
                                                    <label class="am-radio-inline">
                                                        <input type="radio" name="data[index][index][popup][is_open]" value="1" data-am-ucheck
                                                            {$model['index']['index']['popup']['is_open'] == 1 ? 'checked' : ''} >开启
                                                    </label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="am-text-middle">
                                                    <p class="item-title">
                                                        <input type="hidden" name="data[index][index][video][title]" value="{$model['index']['index']['video']['title']}" />
                                                        {$model['index']['index']['title']}
                                                        {$model['index']['index']['video']['title']}广告
                                                    </p>
                                                </td>
                                                <td class="am-text-middle">
                                                    <input type="text" class="tpl-form-input" name="data[index][index][video][adunit]" value="{$model['index']['index']['video']['adunit']}">
                                                </td>
                                                <td class="am-text-middle">
                                                    <label class="am-radio-inline">
                                                        <input type="radio" name="data[index][index][video][is_open]" value="0" data-am-ucheck
                                                            {$model['index']['index']['video']['is_open'] == 0 ? 'checked' : ''} >关闭
                                                    </label>
                                                    <label class="am-radio-inline">
                                                        <input type="radio" name="data[index][index][video][is_open]" value="1" data-am-ucheck
                                                            {$model['index']['index']['video']['is_open'] == 1 ? 'checked' : ''} >开启
                                                    </label>
                                                </td>
                                            </tr>
                                            <input type="hidden" name="data[shop][index][title]" value="{$model['shop']['index']['title']}" />
                                            <tr>
                                                <td class="am-text-middle">
                                                    <p class="item-title">
                                                        <input type="hidden" name="data[shop][index][popup][title]" value="{$model['shop']['index']['popup']['title']}" />
                                                        {$model['shop']['index']['title']}
                                                        {$model['shop']['index']['popup']['title']}广告
                                                    </p>
                                                </td>
                                                <td class="am-text-middle">
                                                    <input type="text" class="tpl-form-input" name="data[shop][index][popup][adunit]" value="{$model['shop']['index']['popup']['adunit']}">
                                                </td>
                                                <td class="am-text-middle">
                                                    <label class="am-radio-inline">
                                                        <input type="radio" name="data[shop][index][popup][is_open]" value="0" data-am-ucheck
                                                            {$model['shop']['index']['popup']['is_open'] == 0 ? 'checked' : ''} >关闭
                                                    </label>
                                                    <label class="am-radio-inline">
                                                        <input type="radio" name="data[shop][index][popup][is_open]" value="1" data-am-ucheck
                                                            {$model['shop']['index']['popup']['is_open'] == 1 ? 'checked' : ''} >开启
                                                    </label>
                                                </td>
                                            </tr>
                                            <input type="hidden" name="data[shop][list][title]" value="{$model['shop']['list']['title']}" />
                                            <tr>
                                                <td class="am-text-middle">
                                                    <p class="item-title">
                                                        <input type="hidden" name="data[shop][list][video][title]" value="{$model['shop']['list']['video']['title']}" />
                                                        {$model['shop']['list']['title']}
                                                        {$model['shop']['list']['video']['title']}广告
                                                    </p>
                                                </td>
                                                <td class="am-text-middle">
                                                    <input type="text" class="tpl-form-input" name="data[shop][list][video][adunit]" value="{$model['shop']['list']['video']['adunit']}">
                                                </td>
                                                <td class="am-text-middle">
                                                    <label class="am-radio-inline">
                                                        <input type="radio" name="data[shop][list][video][is_open]" value="0" data-am-ucheck
                                                            {$model['shop']['list']['video']['is_open'] == 0 ? 'checked' : ''} >关闭
                                                    </label>
                                                    <label class="am-radio-inline">
                                                        <input type="radio" name="data[shop][list][video][is_open]" value="1" data-am-ucheck
                                                            {$model['shop']['list']['video']['is_open'] == 1 ? 'checked' : ''} >开启
                                                    </label>
                                                </td>
                                            </tr>
                                            <input type="hidden" name="data[shop][wifi][title]" value="{$model['shop']['wifi']['title']}" />
                                            <tr>
                                                <td class="am-text-middle">
                                                    <p class="item-title">
                                                        <input type="hidden" name="data[shop][wifi][video][title]" value="{$model['shop']['wifi']['video']['title']}" />
                                                        {$model['shop']['wifi']['title']}
                                                        {$model['shop']['wifi']['video']['title']}广告
                                                    </p>
                                                </td>
                                                <td class="am-text-middle">
                                                    <input type="text" class="tpl-form-input" name="data[shop][wifi][video][adunit]" value="{$model['shop']['wifi']['video']['adunit']}">
                                                </td>
                                                <td class="am-text-middle">
                                                    <label class="am-radio-inline">
                                                        <input type="radio" name="data[shop][wifi][video][is_open]" value="0" data-am-ucheck
                                                            {$model['shop']['wifi']['video']['is_open'] == 0 ? 'checked' : ''} >关闭
                                                    </label>
                                                    <label class="am-radio-inline">
                                                        <input type="radio" name="data[shop][wifi][video][is_open]" value="1" data-am-ucheck
                                                            {$model['shop']['wifi']['video']['is_open'] == 1 ? 'checked' : ''} >开启
                                                    </label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="am-text-middle">
                                                    <p class="item-title">
                                                        <input type="hidden" name="data[shop][wifi][excitation][title]" value="{$model['shop']['wifi']['excitation']['title']}" />
                                                        {$model['shop']['wifi']['title']}
                                                        {$model['shop']['wifi']['excitation']['title']}广告
                                                    </p>
                                                </td>
                                                <td class="am-text-middle">
                                                    <input type="text" class="tpl-form-input" name="data[shop][wifi][excitation][adunit]" value="{$model['shop']['wifi']['excitation']['adunit']}">
                                                </td>
                                                <td class="am-text-middle">
                                                    <label class="am-radio-inline">
                                                        <input type="radio" name="data[shop][wifi][excitation][is_open]" value="0" data-am-ucheck
                                                            {$model['shop']['wifi']['excitation']['is_open'] == 0 ? 'checked' : ''} >关闭
                                                    </label>
                                                    <label class="am-radio-inline">
                                                        <input type="radio" name="data[shop][wifi][excitation][is_open]" value="1" data-am-ucheck
                                                            {$model['shop']['wifi']['excitation']['is_open'] == 1 ? 'checked' : ''} >开启
                                                    </label>
                                                </td>
                                            </tr>
                                            <input type="hidden" name="data[user][index][title]" value="{$model['user']['index']['title']}" />
                                            <tr>
                                                <td class="am-text-middle">
                                                    <p class="item-title">
                                                        <input type="hidden" name="data[user][index][popup][title]" value="{$model['user']['index']['popup']['title']}" />
                                                        {$model['user']['index']['title']}
                                                        {$model['user']['index']['popup']['title']}广告
                                                    </p>
                                                </td>
                                                <td class="am-text-middle">
                                                    <input type="text" class="tpl-form-input" name="data[user][index][popup][adunit]" value="{$model['user']['index']['popup']['adunit']}">
                                                </td>
                                                <td class="am-text-middle">
                                                    <label class="am-radio-inline">
                                                        <input type="radio" name="data[user][index][popup][is_open]" value="0" data-am-ucheck
                                                            {$model['user']['index']['popup']['is_open'] == 0 ? 'checked' : ''} >关闭
                                                    </label>
                                                    <label class="am-radio-inline">
                                                        <input type="radio" name="data[user][index][popup][is_open]" value="1" data-am-ucheck
                                                            {$model['user']['index']['popup']['is_open'] == 1 ? 'checked' : ''} >开启
                                                    </label>
                                                </td>
                                            </tr>
                                            <input type="hidden" name="data[login][index][title]" value="{$model['login']['index']['title']}" />
                                            <tr>
                                                <td class="am-text-middle">
                                                    <p class="item-title">
                                                        <input type="hidden" name="data[login][index][video][title]" value="{$model['login']['index']['video']['title']}" />
                                                        {$model['login']['index']['title']}
                                                        {$model['login']['index']['video']['title']}广告
                                                    </p>
                                                </td>
                                                <td class="am-text-middle">
                                                    <input type="text" class="tpl-form-input" name="data[login][index][video][adunit]" value="{$model['login']['index']['video']['adunit']}">
                                                </td>
                                                <td class="am-text-middle">
                                                    <label class="am-radio-inline">
                                                        <input type="radio" name="data[login][index][video][is_open]" value="0" data-am-ucheck
                                                            {$model['login']['index']['video']['is_open'] == 0 ? 'checked' : ''} >关闭
                                                    </label>
                                                    <label class="am-radio-inline">
                                                        <input type="radio" name="data[login][index][video][is_open]" value="1" data-am-ucheck
                                                            {$model['login']['index']['video']['is_open'] == 1 ? 'checked' : ''} >开启
                                                    </label>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                    <button type="submit" class="j-submit am-btn am-btn-secondary">提交
                                    </button>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        
        $('#my-form').formPost();

    });
</script>